//
//  PListUtils.m
//  PocketWenzhou3
//
//  Created by carlos on 13-7-1.
//  Copyright (c) 2013年 carlosk. All rights reserved.
//

#import "PListUtils.h"

@implementation PListUtils
+(id)valueByPListName:(NSString *)pListName withKey:(NSString *)key{
    NSString *plistPath = [[NSBundle mainBundle] pathForResource:pListName ofType:@"plist"];
    NSMutableDictionary *data = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
    return [data objectForKey:key];
}

//获取value根据coconfig的plist文件
+(id)valueCOConfigWithKey:(NSString *)key{
    return [self valueByPListName:kPListCOConfig withKey:key];
}
@end
